package com.markerhub.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.time.LocalDateTime;

//序列化。结合RabbitMQ需要序列化，否则RabbitMQ无法解析
@Data
public class ElasticSearchBlog implements Serializable {
    private Long id;
    private Long userId;
    private String title;
    private String description;
    private String content;
    private LocalDateTime created;
    private Integer status;
}
